import request from '@/utils/request'
import qs from 'qs'

// 财务统计
export function financialBusiness (begin_date,end_date) {
  return request({
    url: 'order/report/financial_business',
    method: 'get',
    params: {
      beginDate:begin_date,
      endDate:end_date,
      storeId: sessionStorage.getItem("storeId"),
    }
  })
}

// 门店总收入跟订单总数统计
export function ordernumAndMoney () {
  return request({
    url: 'order/report/ordernum_and_money',
    method: 'get',
    params: {
      storeId: sessionStorage.getItem("storeId"),
    }
  })
}


// 日营业统计
export function daySummaryBusiness (begin_date,end_date) {
  return request({
    url: 'order/report/day_summary_business',
    method: 'get',
    params: {
      beginDate:begin_date,
      endDate:end_date,
      storeId: sessionStorage.getItem("storeId"),
    }
  })
}

// 赠菜统计
export function giftFoodOrCancleFood (begin_date,end_date,status) {
  return request({
    url: 'order/report/gift_food_or_cancle_food',
    method: 'get',
    params: {
      beginDate:begin_date,
      endDate:end_date,
      storeId: sessionStorage.getItem("storeId"),
      status:status
    }
  })
}
